package com.hfh.death_lock;

public class AccountThread extends Thread {
    private Account src;
    private Account target;
    private int money;

    public AccountThread(String name, Account src, Account target, int money) {
        super(name);
        this.src = src;
        this.target = target;
        this.money = money;
    }

    @Override
    public void run() {
        // 实现转账
        src.transfer(target, money);
    }
}
